import request from '@/utils/request'

// 水费标准
export function getWaterPriceList(params) {
    return request({
        url: '/priceManagement/waterPrice/select',
        method: 'get',
        params
    })
}

export function deleteWaterPrice(id) {
    return request({
        url: '/priceManagement/waterPrice/deleteById',
        method: 'post',
        headers: {
            'Content-Type': 'application/json'
        },
        data: id
    })
}

export function editWaterPrice(data) {
    return request({
        url: '/priceManagement/waterPrice/update',
        method: 'post',
        data
    })
}
export function addWaterPrice(data) {
    return request({
        url: '/priceManagement/waterPrice/insert',
        method: 'post',
        data
    })
}


// 电费标准
export function getElectricityPriceList(params) {
    return request({
        url: '/priceManagement/electricityPrice/select',
        method: 'get',
        params
    })
}

export function deleteElectricityPrice(id) {
    return request({
        url: '/priceManagement/electricityPrice/delete',
        method: 'post',
        headers: {
            'Content-Type': 'application/json'
        },
        data: id
    })
}

export function editElectricityPrice(data) {
    return request({
        url: '/priceManagement/electricityPrice/edit',
        method: 'post',
        data
    })
}
export function addElectricityPrice(data) {
    return request({
        url: '/priceManagement/electricityPrice/add',
        method: 'post',
        data
    })
}

